<%-- 
    Document   : adminViewCourseSections
    Created on : Nov 12, 2013
    Author     : Patrick
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="../../assets/ico/favicon.png">

    <title>GRS Admin Sections</title>

    <!-- Bootstrap core CSS -->
    <link href="../libs/bootstrap/css/bootstrap.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="../stylesheets/grid.css" rel="stylesheet">
    
    <!-- jQWidgets CSS -->
    <link href="../libs/jqwidgets/styles/jqx.base.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="../../assets/js/html5shiv.js"></script>
      <script src="../../assets/js/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>
      <header>
        <nav class="navbar navbar-default" role="navigation">
            <div class="navbar-header"><p class="navbar-text navbar-left">Grade Report System</p></div>
            <form class="" method="post" action="adminSections" >
                <ul class="nav navbar-nav">
                  <li><a href="../grs/adminUsers">Users</a></li>
                  <li><a href="../grs/adminCourses">Courses</a></li>
                  <li class="active"><a href="">Sections</a></li>
                </ul>
            </form>
            <form class="navbar-form navbar-right" method="post" action="../login" >
                <div class="form-group">Signed in as ${sessionScope.UserName}</div>
                <button id="logout" name="logout" type="submit" class="btn btn-link">(Log out)</button>
            </form>
           
        </nav>    
    </header>
    <div class="container">
        <div id="successMessageContainer" class="alert alert-success" style="display: none;">
            <a class="close" data-dismiss="alert" href="#">×</a><span id="successMessage">${messages.success}</span>
        </div>
        <div id="errorMessageContainer" class="alert alert-danger" style="display: none;">
            <a class="close" data-dismiss="alert" href="#">×</a><span id="errorMessage">${messages.error}</span>
        </div>
      <h2>Admin Sections</h2>
      <p class="lead">Manage current course-sections and add new course-sections to GRS.</p>
      <form class="form-group" method="post" action="adminSections" >
          <input type="hidden" id="inputSectionId" name="inputSectionId" value="">
          <input type="hidden" id="inputSectionName" name="inputSectionName">
          <input type="hidden" id="inputProfId" name="inputProfId">
          <input type="hidden" id="inputCourseId" name="inputCourseId">
          <input type="hidden" id="inputCourseName" name="inputCourseName">
          <input type="hidden" id="inputScheduleId" name="inputScheduleId">
          <input type="hidden" id="inputSemesterTypeId" name="inputSemesterTypeId">
          <input type="hidden" id="inputSemesterYear" name="inputSemesterYear">
          <input type="hidden" id="inputRoomNumber" name="inputRoomNumber">
          <button type="submit" class="hidden" name="submitDeleteSection" id="submitDeleteSection"></button>
          <button type="submit" class="btn btn-primary" name="addSection" id="addSection"><span class="glyphicon glyphicon-plus"></span> Add Section</button>
        <button type="submit" class="btn disabled" name="editSection" id="editSection" disabled="disabled"><span class="glyphicon glyphicon-edit"></span> Edit Section</button>
     <!--  <button type="submit" class="btn disabled" name="scheduleSection" id="scheduleSection" disabled="disabled"><span class="glyphicon glyphicon-calendar"></span> Schedule </button> -->
        <button type="submit" class="btn disabled" name="enrollSection" id="enrollSection" disabled="disabled"><span class="glyphicon glyphicon-list"></span> Enrollment </button>
        <button type="submit" class="btn disabled" name="deleteSection" id="deleteSection" disabled="disabled"><span class="glyphicon glyphicon-minus"></span> Delete</button>
      </form>
      <p></p>
      <div id="sectionsGrid">
      </div>

    </div> <!-- /container -->


    <!-- Bootstrap core JavaScript
    ================================================== -->
    <script src="../libs/jquery/jquery-2.0.3.min.js"></script>
    <script src="../libs/jqwidgets/jqx-all.js"></script>
    <script src="../libs/bootstrap/js/bootstrap.min.js"></script>
    <script src="../scripts/adminSectionsView.js"></script>
    <!-- Placed at the end of the document so the pages load faster -->
  </body>
</html>

